export const pickerOptions = {
    shortcuts: [
        {
            text: '最近一天',
            onClick(picker) {
                const end = new Date()
                const start = new Date()
                start.setTime(start.getTime() - 3600 * 1000 * 24 * 1)
                picker.$emit('pick', [start, end])
            },
        },
        {
            text: '最近三天',
            onClick(picker) {
                const end = new Date()
                const start = new Date()
                start.setTime(start.getTime() - 3600 * 1000 * 24 * 3)
                picker.$emit('pick', [start, end])
            },
        },

        {
            text: '最近七天',
            onClick(picker) {
                const end = new Date()
                const start = new Date()
                start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
                picker.$emit('pick', [start, end])
            },
        },
    ],
}
// 右键菜单配置 特征值
export const contextMenuData1 = {
    // 菜单名称   同一界面必须唯一
    menuName: 'waveFormEig',
    // 菜单显示的坐标位置
    axis: {
        x: null,
        y: null,
    },
    // 菜单选项
    menulists: [
        {
            fnHandler: 'downloadData',
            btnName: '导出数据',
        },
        {
            fnHandler: 'selectTime',
            btnName: '查询波形频谱',
        },
        {
            fnHandler: 'handleMean',
            btnName: '均值',
        },
        {
            fnHandler: 'batchData',
            btnName: '批量导出',
        },
    ],
}

// 图谱
export const contextMenuData2 = {
    // 菜单名称   同一界面必须唯一
    menuName: 'waveFormDomain',
    // 菜单显示的坐标位置
    axis: {
        x: null,
        y: null,
    },
    // 菜单选项
    menulists: [],
}
